

// 全局的指令 + 过滤器 

import Vue from "vue"

Vue.filter("timeFormat", (value) => {
    if (!value) return "";
    var uid = this.list[0].content[0].link
    var id = uid.substr(31, 9)
    return id
})

Vue.filter("tofix", (value, n) => {
    if (!value) return "";
    n = n || 2
    return value.toFixed(n)
})